﻿@model RonYee.Models.MvcPage

@{
    ViewBag.Title = "财务记录";
    Layout = "~/Views/Shared/_LayoutOfSecondPage.cshtml";
}

<script type="text/javascript">

    function getAjaxPageDate(CurrentPageIndex) {
        var dataStr = "CurrentPageIndex=" + CurrentPageIndex;
        $.ajax({
            type: "POST",
            url: "/Financial/PageIndex",
            data: dataStr,
            contentType: "application/x-www-form-urlencoded;charset=UTF-8",
            async: false, // 同步  true 异步。默认是异步
            error: function (datas) {
                alert(datas);
            },
            success: function (data) {
                $('#content').html(data);
            }
        });
    }
</script>



<div class="box_padding" id="content">
@using (Html.BeginForm("PageIndex", "Financial", FormMethod.Post))
 { 
    <h3><i class="ui-icons"></i>财务记录</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg"><div class="box_padding">
    <div class="border_line">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
   <tbody>
    <tr>
        <th class="tdName">
            编号
        </th>
        <th class="tdName">
            订单编号
        </th>
        <th class="tdName">
            收入
        </th>
        <th class="tdName">
            财务费用
        </th>
        <th class="tdName">
            编辑者
        </th>
        <th class="tdName">
            完成时间
        </th>
        <th class="tdName">
            详细
        </th>
    </tr>

@foreach (RonYee.Models.Financial item in Model.FinancialList)
{
    <tr>
        <td class="tdData">
            @Html.DisplayFor(modelItem => item.Id)
        </td>
        <td class="tdData">
            @Html.DisplayFor(modelItem => item.OrderId)
        </td>
        <td class="tdData">
            @Html.DisplayFor(modelItem => item.Total)
        </td >
        <td class="tdData">
            @Html.DisplayFor(modelItem => item.FinancialCost)
        </td >
        <td class="tdData">
            @Html.DisplayFor(modelItem => item.Editor)
        </td>
        <td class="tdData">
            @Html.DisplayFor(modelItem => item.AddTime)
        </td>
        <td class="tdData">
            @Html.ActionLink("详细", "Details", new { id = item.Id })
        </td>
    </tr>
}
  </tbody>
</table>
<center>@Html.Partial("~/Views/Shared/_PageIndex.cshtml", Model)</center> 
</div>
</div></div>
    <div class="box_down ui-icons"></div>
 }
</div>
<div class="line_top"></div>


